-- GENERATED SPELL FOR [Bjorn Halgurdsson] --


function spell0_24238(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(33661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24238', 30340, 1)
end

function spell1_24238(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24238', 5290, 1)
end

function Sorts_24238(pUnit, Event)
local choix_sorts_24238 = math.random(0, 1)
if choix_sorts_24238 == 0 then
pUnit:RegisterEvent('spell0_24238', 1, 1)
end
if choix_sorts_24238 == 1 then
pUnit:RegisterEvent('spell1_24238', 1, 1)
end
end

function mob24238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24238', math.random(1500, 3000), 1)
end

function mob24238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24238, 1, 'mob24238_Action')
RegisterUnitEvent(24238, 2, 'mob24238_Leave')
RegisterUnitEvent(24238, 3, 'mob24238_Kill')
RegisterUnitEvent(24238, 4, 'mob24238_Die')
